package cn.javass.dp.chianofresponsibility.example4;

public class Client {
    public static void main(String[] args) {
        Handle h2 = new DepManager();
        Handle h3 = new GeneralManager();
        Handle h1 = new ProjectManager();

        h1.setSuccessor(h2);
        h2.setSuccessor(h3);

 /*       String str = h1.handleFeeRequest("小李", 500);
        String str2 = h1.handleFeeRequest("小张", 1500);
        System.out.println("str = " + str);
        System.out.println("str2 = " + str2);*/

        boolean str3 = h1.handlePreFeeRequest("小红",111000);
        System.out.println(str3);

    }
}
